package com.cqjybigscreen.controller;

import com.cqjybigscreen.pojo.vo.BoxVolumeVO;
import com.cqjybigscreen.service.AdsCqwlOrderDetailsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 订单明细表 前端控制器
 * </p>
 *
 * @author RaoChang
 */
@Slf4j
@RestController
@RequestMapping("adsCqwlOrderDetails")
public class AdsCqwlOrderDetailsController {

    @Autowired
    private AdsCqwlOrderDetailsService  adsCqwlOrderDetailsService;
    /**
     * 根据目的地-获取订单详情
     */
    @GetMapping("/orderList")
    public List<BoxVolumeVO> orderList(String destinationStation) {
        return adsCqwlOrderDetailsService.getOrderDetailsByDestination(destinationStation);
    }
}
